import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueLazyload from "vue-lazyload";
import './plugins/axios'
import 'animate.css';

Vue.config.productionTip = false;

//让ajax携带cookie
axios.defaults.withCredentials = true;

// 使用图片懒加载插件
Vue.use(VueLazyload, {
	error: require('@/assets/img/loading/loading.gif'),
	loading: require('@/assets/img/loading/loading.gif'),
	attempt: 1
})

new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
